package org.fly.jingwei.service;

import org.fly.jingwei.entity.TaskGroupAttributeEntity;
import org.fly.jingwei.entity.TaskGroupEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author leo
 * @date 2017/3/22
 */
public interface TaskGroupService {
    //TODO 获取当前登录用户的所有任务组信息 分页形式    用户模块暂无

    String getAllTaskGroupByLogin(int start, int limit, String userGroupName, String taskGroupName, String createDate);

    void addTaskGroup(HttpServletRequest request);

    String getAllTaskBeforeAdd(String userGroupName);

    boolean decideGroupNameExist(String name);

    void updateTaskGroup(TaskGroupEntity taskGroup);

    String selectTaskGroupAttributesByName(String name);

    void deleteTaskGroupAndAttributes(String name);

    List<TaskGroupEntity> isContainsTask(String taskName, String type, String userGroupName);

    void assignedTaskGroup(List<TaskGroupAttributeEntity> items, String taskName, String type);

    String getAllTaskGroupNoPage();

    List<TaskGroupEntity> allTaskGroupBeforeAdd(String userGroupName);
}
